% Sensitivity MA Cross [racer8]This is my third published indicator on % Sensitivity MA, if you're not familiar with it, go check out my first one. This time its a cross between 2 % Sensitivity MAs. Pine Script®指标由racer8提供135
Moving Average CrossNote: This is just an idea, I did not test this for trading. MA Cross normally uses close as source in the moving averages, this script uses highs and lows as source. In an uptrend you will see the 20 period high EMA and 50 period low EMA, once they cross, the indicator will switch to 20 period low EMA and 50 period high EMA. This gives it way less fake crosses as you see in the image on BTC. As i said above, this is just an idea. If you change the settings, they might not cross at all.. so do your own testing. Hope this code can help someone.Pine Script®指标由EvoSti_提供33182
MultiType Shifting Predictive Moving Averages (MA) CrossoverJust 2 Moving Averages with adjustable settings and shifting capability, plus signals and predicting continuations. At the time of publish these different types of MAs are supported: - SMA (Simple) - EMA (Exponential) - DEMA (Double Exponential) - TEMA (Triple Exponential) - RMA (Adjusted Exponential) - WMA (Weighted) - VWMA (Volume Weighted) - SWMA (Symmetrically Weighted) - HMA (Hull) I'm looking forward to any idea about filtering the signals. Thanks.Pine Script®指标由informanerd提供已更新 2626701
SW System - EMAs - Pivots v2//========================================================= // Indicator Name: SW System - Traditional Pivots and MA cross alerts - Plus Psychological Sup/Res // Type: Main panel // Version: 2 // Description: MA cross alerts - Plus Psychological Sup/Res // Traditional Pivots in any time frame // Author: Sergio Waldoke (Argentina) // First Release: June 23rd, 2019 // Last Release: June 27 th, 2020 // // This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org // © galileogalilei1 (Sergio Waldoke) //========================================================== Set of tendence and Support/Resistance with Pivots and psychological S/R in main prices. Four moving averages are provide which may be chosen between EMA or simple Moving Average. Some alerts in crosses are provide. Enjoy!Pine Script®指标由galileogalilei1提供67
Hull 2xPlots 2 Hull MA's, 1 Fast and 1 Slow Can Paint Bars according to Hull MA Cross Buy / Sell Alerts for MA CrossingPine Script®指标由Lij_MC提供已更新 1212780
Fast-Slow MA Cross on custom timeframe (with alerts)A simple script for tracking your moving average crossing with an option for a fixed time frame and a 3 additional MAs for reference.Pine Script®指标由SemiQuasi提供已更新 1170
TN MA Cross Potential entry when the MA 5 crosses the MA 13 on an uptrend. This indicator is not meant for a you to buy and sell. It is a way to see if your fav coins are heading in an uptrend.Pine Script®指标由TopNotchCrypto提供2
Bitazu MA 5,10Displays 5,10 MAs on a single indicator. Useful for Crypto trading and reduced the number of indicators needed to view multiple EMAs When shorter MA crosses over the longer it's a good sign of Bullish/Bearish reversal. This sentiment is more true at longer timeframes, such as daily candles, as the trend has more momentum. Pine Script®指标由ankitbitazu提供已更新 14
Bitazu MA 10,20Displays 10, 20 MAs on a single indicator. Useful for Crypto trading and reduced the number of indicators needed to view multiple MAs When shorter MA crosses over the longer it's a good sign of Bullish/Bearish reversal. This sentiment is more true at longer timeframes, such as daily candles, as the trend has more momentum.Pine Script®指标由ankitbitazu提供已更新 2243
Regression Channel Oscillator█ OVERVIEW Regression Channel Oscillator is an oscillator based on linear regression that shows when price moves away from its natural path and when it returns to balance. Unlike a classic moving average, linear regression does not simply average price — it accounts for direction and speed of movement. As a result, its center better represents the true price path rather than a lagging average. Advantage over MA: - detects changes in market dynamics faster - lags less during trends - better identifies when a move becomes excessive relative to the current direction The result: the oscillator more precisely highlights market overextension, not just distance from an average. █ CONCEPTS The indicator was created primarily for precise identification of correction areas and potential trend change points, when price moves too far away from its current path. At the same time, it works very well as: - a trend-following tool - a detector of low-volatility phases When the oscillator line stays near zero and cannot reach OB/OS zones, the market is in balance or compression — often a phase before a larger move. Strong pushes into extreme zones show that the market has temporarily moved away from its natural path. █ FEATURES Regression Settings - Regression Length – defines how broadly the current price path is measured - RMSE Multiplier – controls oscillator sensitivity to deviations Oscillator - Shows how far price has moved away from its current path - Range is limited for readability - Optional smoothing: SMA / EMA / None Signal Settings - Signal MA – moving average of the oscillator used for momentum confirmation - Show Signal MA – option to enable or disable the signal line entirely - Signal Color Mode - Direction – color changes based on slope - Position vs Zero – color changes based on position relative to zero - Signal SMA Length – length of the signal moving average Overbought / Oversold Zones - Configurable OB/OS levels for the oscillator - Additional hidden OB/OS thresholds for the Signal MA (signal line) - When SMA crosses these thresholds, the main OB/OS zones change color — providing additional confirmation of potential direction change or move exhaustion Dynamic Colors - Oscillator above 0 → bullish - Below 0 → bearish Gradients & Visualization - Oscillator gradient - Multi-layer SMA gradient - OB/OS zone gradients - Gradient fill toward the zero line - Full visual customization Signals - Signal appears when leaving extreme zones Alerts - Alerts for exits from OB/OS zones █ HOW TO USE Add the indicator in TradingView → Regression Channel Oscillator or copy the code and paste it into the Pine Editor. This tool helps determine whether price is moving in a healthy trend rhythm or is already overextended relative to its current path. It helps distinguish three market states: - Stable trend – oscillator stays on one side of zero - Overextended move – entries into OB/OS zones - Compression / no direction – oscillator moves around the zero line Shorter settings → faster reaction (intraday, scalping) Longer settings → more stable readings (swing, higher timeframes) █ APPLICATIONS Corrections in trend When the market is trending, entries into extreme zones often mark moments where the move has become stretched and a pullback may occur. In strong impulses, however, this state can persist for a long time — trying to catch the end of the move can be risky. Trend following When the oscillator remains on one side of zero, it indicates the dominant market side. Low-volatility phases When the oscillator stays near zero and does not reach OB/OS zones, the market is in balance or accumulation before a larger move. Momentum confirmation When the Signal MA crosses its additional OB/OS thresholds, the main extreme zones change color. This visual confirmation suggests that the move may be nearing exhaustion or that the probability of a direction change is increasing. █ NOTES - In strong trends, the oscillator may stay in extreme zones for extended periods — this reflects strength, not an immediate reversal. - OB/OS levels should be adjusted to the instrument and timeframe. - Works best when combined with market structure, trend analysis, and support/resistance levels.Pine Script®指标由Uncle_the_shooter提供61
Sequential Stoch and RSI MA Cross CAWBuy and sell signals based on the crossing of the Stochastic and RSI at relatively the same time.Pine Script®指标由thetradebrigade提供4
Stoch and RSI MA Cross Any Order CAWBuy and sell signals based on the crossing of both the Stochastic and the RSI at relatively the same time.Pine Script®指标由thetradebrigade提供2
Sequential Stoch and RSI MA Cross CAWBuy and sell signals based on both Stochastic and RSI crosses relatively at the same timePine Script®指标由thetradebrigade提供6
Step Generalized Moving Average [BackQuant]Step Generalized Moving Average Overview Step Generalized Moving Average (StepGMA) is a trend-structure moving average designed to solve two common problems with classic MAs: They overreact to noise in chop, causing constant micro-flips. They lag too much when you smooth them enough to stop that noise. StepGMA tackles this by combining two layers: A Generalized Moving Average (GMA) that increases responsiveness without simply shortening length. A Step Filter that converts the MA into discrete “steps” sized by ATR, suppressing insignificant movement and only updating when the move is meaningful. The output is a trend line that behaves more like market structure: it holds its level through noise, then “reprices” in chunks when volatility-adjusted movement is large enough. What the indicator is trying to represent Instead of showing every tiny MA wiggle, StepGMA tries to represent the idea that: Most price movement is noise relative to volatility. Trend only matters when it advances by a meaningful amount. A good trend line should stay stable until the market forces it to move. That makes this indicator useful as: A regime filter (trend vs chop). A trend-following bias line. A structure-like dynamic S/R reference. A signal generator with fewer low-quality flips. Component 1: Moving Average engine (selectable) The base smoothing is not fixed. You can choose between multiple MA types: SMA, EMA, WMA, VWMA: classic smoothing families. DEMA, TEMA: reduced-lag EMA variants. T3: smooth yet responsive, good for trend. HMA: very low lag, can be twitchy without filtering. ALMA: center-weighted smoothing, often “cleaner” visually. KAMA: adaptive smoothing based on efficiency ratio, good in mixed regimes. LSMA: regression-based, tends to track trend direction well. McGinley: dynamic smoothing designed to reduce lag during fast moves. This matters because the StepGMA is not “one MA.” It is a framework that lets you pick the underlying smoothing behavior, then applies the generalization and step logic on top. Component 2: Generalized Moving Average (GMA) Where the idea comes from Generalized MA here is essentially a form of two-stage smoothing compensation . A common trick in signal processing and technical analysis is: Apply a smoother once (MA1). Apply it again (MA2). Use MA2 as a “lag reference,” then combine MA1 and MA2 to reduce lag while keeping smoothness. This is related in spirit to reduced-lag filters (like DEMA/TEMA) and “zero-lag” style constructions that subtract part of the lag component. You are not magically removing lag, you are biasing the output toward the first-pass MA while subtracting some of the second-pass smoothing that represents delayed response. How this script does it It computes: ma1 = MA(src, len) ma2 = MA(ma1, len) Then combines them using a volume factor (vf): generalized = ma1 * (1 + vf) - ma2 * vf Interpretation: ma2 is a “more delayed” version of ma1. Subtracting vf * ma2 and adding (1+vf) * ma1 pushes the output toward responsiveness. vf controls how aggressive that push is. Volume Factor (vf) is really an aggressiveness knob The script clamps vf between 0.01 and 1.0 to keep it stable. Conceptually: Low vf: behaves closer to a normal MA1, smoother, more lag. High vf: more compensation, faster response, more risk of overshoot or noise sensitivity (which is then handled by the step filter). So the GMA stage tries to give you a cleaner, faster trend estimate without just shrinking the MA period. Component 3: Step Filter (the key behavior) What a step filter is A step filter turns a continuous signal (here, the generalized MA) into a discrete “staircase” signal. Instead of updating every bar, it updates only when the input has moved far enough to justify a new step. This is conceptually similar to: A quantizer in signal processing (rounding changes to discrete increments). A volatility threshold filter (ignore changes smaller than X). Market structure logic where levels matter more than micro movement. How it works in this script The filter maintains a persistent value: stepped . Each bar: diff = src - stepped If |diff| < stepSize, do nothing (hold the level). If |diff| >= stepSize, move stepped by a number of step increments. The step increment size is: stepSize = (stepMult / 100) * ATR(atrPeriod) This is critical: In higher volatility, ATR is larger, so steps are larger, fewer updates, more stability. In lower volatility, ATR is smaller, so steps are smaller, more updates, more sensitivity. So the step behavior automatically adapts to volatility. Multiple-step catching behavior If price jumps far beyond one step, the script does not move only one step. It moves by: floor(|diff| / stepSize) * stepSize So it “catches up” in discrete blocks, preserving the stepped character without lagging massively after large moves. Direction and regime Direction is determined by the stepped line, not the raw MA: direction = +1 if steppedMA is rising direction = -1 if steppedMA is falling otherwise direction stays the same Signals only trigger on direction state changes: Long when direction flips to +1 Short when direction flips to -1 This matters because it prevents repeated signals while the trend remains intact. You only get a signal when the market has moved enough (in ATR terms) to justify a structural step in the opposite direction. Secondary line and gradient fill The script also plots a secondary “slow MA” (length 25, same MA type). This is not the core logic, it is a visual context layer: StepGMA is the structure line (discrete, regime-driven). Slow MA is a smoother reference for the underlying drift. The gradient fill highlights separation and dominance. When StepGMA sits above the slow MA, the fill reinforces bullish bias. When below, it reinforces bearish bias. It is basically a “trend pressure” visual, not a separate signal. How to interpret it 1) StepGMA as trend structure Flat steps mean price is not making enough volatility-adjusted progress to move structure. Up-steps mean the market has advanced enough to reprice the trend line upward. Down-steps mean deterioration significant enough to reprice structure downward. 2) Direction is a regime, not a tick-by-tick call Because direction is derived from step changes, it is naturally a regime filter: Fewer flips in chop. Clearer regime transitions. Signals tend to occur later than ultra-fast tools, but with better confirmation quality. 3) Step size controls noise rejection StepMult is the main “anti-chop” control: Higher stepMult = bigger ATR steps = fewer updates, fewer signals, more confirmation, slower to react. Lower stepMult = smaller steps = more updates, more signals, more sensitivity, more chop risk. 4) Generalization controls responsiveness of the underlying trend estimate vf controls how “fast” the MA tries to be before stepping: Higher vf makes the MA respond faster to new price information. Lower vf makes the MA smoother and more conservative. The step filter then decides whether that change is meaningful enough to matter. Practical use cases Trend filter for entries Only take longs when direction is bullish. Only take shorts when direction is bearish. Avoid trades when StepGMA is flat for long periods, market is not repricing meaningfully. Dynamic support and resistance Because the line holds levels, it often behaves like structure: In uptrends it can act as a rising support reference. In downtrends it can act as falling resistance. Signal quality layer The step-based flip signals tend to be higher quality than basic MA crossovers because they require: A meaningful volatility-adjusted move. A confirmed direction change in the stepped trend structure. Trade management Use StepGMA as a trailing invalidation reference. Use direction flips as “hard” regime exits. Use separation vs slow MA as a “pressure” gauge for scaling decisions. Tuning guidelines MA Type Pick based on the character you want: T3, ALMA, KAMA are usually good defaults for clean trend representation. HMA/LSMA are faster but may need larger stepMult to avoid twitch. SMA is slow and stable but can be too laggy unless vf is increased. MA Period Sets the base smoothing horizon. Longer periods give “macro trend,” shorter periods give “tactical trend.” Volume Factor (vf) Sets responsiveness compensation: 0.05–0.25 is usually sensible. Higher than that can get aggressive, step filter will save you, but your steps may fire more often. ATR Period and StepMult These define your structure sensitivity: ATR Period controls how stable the volatility estimate is. StepMult controls how large a move must be to change structure. If you want fewer flips, increase StepMult or ATR Period. If you want quicker reaction, lower StepMult or ATR Period. What this indicator is and is not It is: A trend structure MA that ignores sub-threshold noise. A regime tool that uses volatility-adjusted repricing logic. A configurable framework that works across assets and timeframes. It is not: A predictive reversal tool. A scalping signal machine. A replacement for risk management. Summary Step Generalized Moving Average combines a lag-compensated moving average (generalization via MA1/MA2 blending) with a volatility-scaled step filter (ATR-based quantization). The result is a stable, structure-like trend line that updates only when price movement is meaningful relative to volatility, producing cleaner regimes, fewer chop flips, and clearer trend bias than conventional moving averages. Pine Script®指标由BackQuant提供22596
Support & Resistance with MA Ribbons LITE Support & Resistance with MA Ribbon LITE Overview Support & Resistance with MA Ribbon LITE is a technical analysis indicator for TradingView that combines a flexible Moving Average (MA) Ribbon with a dynamic Support & Resistance (S/R) system. The indicator is designed as a visual decision-support tool, allowing traders to evaluate trend structure, momentum context, and key price reaction zones within a single, uncluttered chart overlay. This script is published as open source under the Mozilla Public License 2.0 , encouraging transparency, learning, and community-driven development. Core Components 1. Moving Average Ribbon System The MA Ribbon consists of two configurable moving averages (Fast and Slow) with multiple calculation and smoothing options, including: EMA, SMA, WMA, VWMA DEMA, TEMA, Zero-Lag EMA Hull MA, Linear Regression MA Super Smoother, Smoothed MA, Laguerre MA Key features include: Trend-aware ribbon fill (bullish / bearish) Optional candle coloring aligned with ribbon state Minute-based anchor timeframe logic for consistent trend structure Optional MA cross, swing, and continuation markers Alert support for MA-related events The MA Ribbon is intended to provide trend context , not standalone trade signals. 2. Support & Resistance Engine The Support & Resistance system is based on pivot structure analysis and dynamically adapts to new price data. Features include: Main and strong support/resistance levels Up to 12 active levels displayed on the chart Preset sensitivities (Scalp, Intraday, Swing) and custom configuration Optional multi-timeframe (MTF) level detection Adaptive labels with automatic contrast handling Optional strength filtering based on historical interactions Optional heat map visualization reflecting level interaction frequency All levels are plotted directly on the price chart for immediate contextual reference. Alert System The script includes a configurable alert framework covering: Main and strong level touches Breakouts and breakdowns Retests of broken levels Optional rejection detection (wick beyond a level with close back inside) Cooldown logic to limit repeated alerts in consolidation phases Alerts are informational only and should always be confirmed visually. Customization & Performance Unified color presets (Classic, Aqua, Cosmic, Ember, Neon, Custom) Independent opacity control for MA Ribbon and candles Modular on/off controls for MA Ribbon and S/R components Optimized plotting to remain within TradingView limits Designed for stable performance across lower and higher timeframes Intended Use This indicator is designed to assist with chart interpretation and market structure analysis. It may help users: Identify prevailing trend conditions Observe price behavior around structurally relevant levels Combine trend context with horizontal market structure Reduce chart clutter by consolidating multiple concepts into one script This indicator is not a trading strategy, does not provide financial advice, and should be used alongside independent analysis and appropriate risk management. How to Use 1. Chart Setup Add the indicator to any chart and timeframe. Both the MA Ribbon and Support & Resistance systems are enabled by default and can be managed independently via the Master Controls section. General guidance: Higher timeframes for structural context Lower timeframes for execution and refinement Applicable across different markets and instruments 2. Using the MA Ribbon The MA Ribbon visualizes trend direction and momentum context. General interpretation: Price above both MAs → bullish bias Price below both MAs → bearish bias Ribbon color reflects trend alignment Ribbon compression may indicate consolidation or transition Optional features include candle coloring, MA cross markers, and filtered continuation arrows. Best practice: Use the MA Ribbon to identify the market regime before reacting to support or resistance levels. MA Ribbon – Minute-Based Timeframe Logic Anchor Timeframe (Minutes) Anchors MA calculations to a fixed timeframe expressed in minutes. Examples: 60 = 1 hour 240 = 4 hours 0 = use current chart timeframe How It Works The anchor automatically scales MA lengths so that the same trend structure is preserved across different chart timeframes. Example (Anchor = 60): 5-minute chart → follows 1-hour structure 15-minute chart → follows the same 1-hour structure 1-hour chart → standard calculation Show Ribbon Only If Chart TF > Anchor Optionally hides the MA Ribbon on chart timeframes lower than the anchor to reduce visual noise. 3. Using Support & Resistance Levels Support and resistance levels are derived from pivot structures and update dynamically. Level types: Main Support / Resistance (most recent and relevant) Strong Support / Resistance (confirmed pivots) Additional historical levels (up to 12 total) Usage guidelines: Focus on price behavior around levels rather than exact prices Combine level reactions with MA Ribbon trend context Use strength filtering to reduce weaker levels Heat map mode highlights frequently interacted zones 4. Combining Trend and Structure The indicator is most effective when both systems are used together: In uptrends, focus on reactions near support In downtrends, focus on reactions near resistance Breakouts are more relevant when aligned with trend context Retests gain importance when structure and trend agree Customization Tips Use preset sensitivities (Scalp / Intraday / Swing) for quick setup Enable MTF S/R to reference higher-timeframe structure Adjust label size, offset, and precision for readability Disable unused components to improve performance on lower-end systems This combined view helps improve contextual clarity and reduce noise. 5. Alerts Usage Alerts are optional and fully configurable. Cooldown settings can be used to limit repeated notifications during ranging conditions. All alerts are informational and should be visually validated. Open Source & Credits This script is released as open source under the Mozilla Public License 2.0. Parts of the MA Ribbon logic and conceptual inspiration are derived from publicly shared work by JustUncleL on TradingView. Respect and thanks are extended for these contributions. You are free to: Study the code Modify it for personal use Share improvements under the same license terms Disclaimer This indicator is provided for educational and informational purposes only. No guarantees are made regarding accuracy, performance, or outcomes. Use at your own discretion.Pine Script®指标由alpprofitmax提供已更新 55940
Rainbow MA Cloud█ OVERVIEW Rainbow MA Cloud displays 8 Moving Averages as a gradient-colored cloud to visualize trend direction and strength. The "rainbow" effect shows momentum through ribbon width, while perfect MA alignment signals strong trending conditions. █ CONCEPTS The indicator uses 8 MAs with Fibonacci-based default lengths (8, 13, 21, 34, 55, 89, 144, 233) to create a layered view of price momentum across multiple timeframes. Perfect Alignment Detection: • Bullish Alignment — All 8 MAs in ascending order (MA1 > MA2 > ... > MA8) Indicates strong uptrend with momentum across all timeframes • Bearish Alignment — All 8 MAs in descending order (MA1 < MA2 < ... < MA8) Indicates strong downtrend with aligned selling pressure • Mixed — MAs are not in sequential order, suggesting consolidation or transition Ribbon Width: • Widening ribbon = Trend acceleration, increasing momentum • Narrowing ribbon = Trend weakening, potential reversal or consolidation █ FEATURES 1 — MA Configuration Choose from EMA, SMA, WMA, VWMA, or HMA calculation methods. All 8 MA lengths are fully customizable. 2 — Color Themes Five built-in themes: Rainbow, Warm, Cool, Neon, Mono. Creates visually distinct gradient from fast to slow MAs. 3 — Alignment Background Green background during bullish alignment. Red background during bearish alignment. Helps quickly identify strong trending periods. 4 — Trend Signals Labels appear when perfect alignment forms. "BULL ALIGN" for bullish, "BEAR ALIGN" for bearish. 5 — Information Panel Real-time display of alignment status, trend strength percentage, ribbon width, price position relative to cloud, and MA values. █ HOW TO USE Entry Signals: • Look for alignment signals (BULL/BEAR ALIGN) as trend confirmation • Enter long when bullish alignment forms with price above cloud • Enter short when bearish alignment forms with price below cloud Trend Following: • Stay in position while alignment background color persists • Widening ribbon confirms trend continuation • Exit or reduce when alignment breaks (background disappears) Support/Resistance: • Cloud edges act as dynamic support (bullish) or resistance (bearish) • Price entering cloud suggests consolidation or potential reversal █ LIMITATIONS • Alignment signals are lagging by nature (based on MA crossovers) • Works best on trending markets; generates mixed signals during ranging periods • Ribbon width measurement uses outer MAs only (MA1 vs MA8) █ COMPANION INDICATOR Use "Rainbow MA Width" indicator for detailed Z-Score analysis of ribbon expansion/contraction patterns.Pine Script®指标由viva_lee提供11
Evening Edge: MA CrossoverEvening Edge 200 day SMA 20 Day EMA Golden Cross Death CrossPine Script®指标由ImReborn提供已更新 7
Moving Average ProjectionDisplays 2-5 moving averages (solid lines) and projects their future trajectory (dashed lines) based on current trend momentum. This helps you anticipate where key MAs are heading and identify potential future support/resistance levels. Important: Projections show where MAs would move IF the current trend continues—they're not predictions. Market conditions change, so use projections as planning tools, not trading signals. General Settings Number of MAs (2-5) controls how many moving averages display on your chart. Start with 2-3 to avoid clutter. Projection Bars (1-100) determines how far into the future to project—use 10-20 for intraday charts and 20-40 for daily charts. Lookback for Slope (2-100) sets the number of bars used to calculate trend slope, where shorter lookbacks are more responsive and longer ones are smoother. The default of 20 works well for most situations. Individual MA Settings (MA 1-5) Each MA has four settings: Length sets the period for the MA (common values are 9, 20, 50, 100, and 200), Type lets you choose between SMA, EMA, WMA, HMA, VWMA, or RMA (EMA is most popular), Color sets the historical MA line color, and Projection Color sets the projected line color (usually a lighter or transparent version of the main color). MA Types Quick Reference: EMA is most popular and responsive to recent prices. SMA gives equal weight to all periods and is the smoothest. HMA is very responsive with low lag. VWMA incorporates volume data. Quick Setup Examples Day Trading: 3 MAs (9/21/50 EMA), 10-15 projection bars, 10-15 lookback Swing Trading: 2 MAs (50/200 EMA), 20-30 projection bars, 20 lookback Scalping: 2 MAs (9/20 EMA), 5-10 projection bars, 5-10 lookback How to Use Trend Identification: An uptrend shows price above rising MAs with projections pointing up. A downtrend shows price below falling MAs with projections pointing down. Consolidation appears as flat MAs with horizontal projections. Support & Resistance: Rising MA projections act as future dynamic support levels, while falling MA projections act as future dynamic resistance levels. Anticipating Changes: Watch for projected MA crossovers before they happen. When projections converge, expect volatility or consolidation. Steep projections suggest unsustainable trends, so be cautious. Flat projections indicate ranging markets. Trade Planning: Check the current trend using MA alignment, then look at projections to gauge trend continuation likelihood. Use projected MA levels for potential targets or stop placement. Important Tips When Projections Work Best: Projections are most reliable in stable trending markets with consistent momentum, low volatility environments, and away from major news events. When to Be Cautious: Use caution during high volatility or choppy price action, around major economic releases, when projections show extreme or parabolic angles, and during trend transitions. Combine With Other Analysis: Don't trade projections alone. Use them alongside price action, volume, support and resistance levels, and other indicators for confirmation. Best Practices Start with 2-3 MAs to avoid chart clutter. Match your projection and lookback bars to your trading timeframe. Use consistent color schemes for quick interpretation. Adjust settings as market conditions change. Always use proper risk management—projections are planning tools, not guarantees. Troubleshooting Projections not showing: Check that Projection Bars > 0 and you're viewing the most recent bar Chart too cluttered: Reduce number of MAs or increase projection color transparency Projections too volatile: Increase lookback bars or switch to EMA/SMA from HMA Can't see certain MAs: Verify "Number of MAs" setting includes them (MA 3 won't show if set to 2)Pine Script®指标由LeafAlgo提供38
NY ORB - Full Dynamic SystemNY ORB - Full Dynamic Strategy Summary 1. Opening Range and Session Timing Opening Range (ORB) Calculation: The strategy identifies the ORB High and ORB Low by tracking the highest high and lowest low during the specified New York pre-market window, which is set by default from 8:30 to 8:45 (New York time). Entry Window: Trading activity is restricted to a specific entry period, typically starting shortly after the ORB is established (default: 8:50 to 12:00). Hard Exit Time: Any remaining open positions are automatically closed at a fixed exit time (default: 13:25). 2. Trade Entry Logic and Filters An entry (Long or Short) is generated when the price breaks out of the established ORB, provided it passes a series of optional filters: Direction Control: The user can restrict the strategy to trade Long Only, Short Only, or Both. Second Breakout Logic: An optional filter that requires the price to break out, reverse back into the range, and then break out again, confirming momentum after a consolidation. Confirmation Candle Count: An optional filter that checks the close of a previous candle (e.g., 1 or 2 candles ago) to ensure the price was still inside the range, preventing premature entry. Technical Filters (Optional): The entry is only executed if it aligns with selected indicators: RSI: Filters for non-overbought (Long) or non-oversold (Short) conditions. MACD: Requires the MACD line to be above/below the Signal line for alignment. VWAP: Requires the price to be above/below the Volume-Weighted Average Price. Trend Filter (SMMA): Requires the price to be above/below a 50-period Simple Moving Average. 3. Dynamic Risk and Exit Management This strategy features highly configurable stop-loss and profit-taking mechanics: Primary Stop Loss Methods: The Stop Loss distance can be dynamically chosen from four types: Fixed: A fixed number of ticks. ATR: Based on a multiple of the Average True Range (ATR). Capped ATR: ATR-based, but with a hard maximum tick limit. OR-Based: Based on a multiple of the actual ORB High-to-Low range. Dynamic Profit Target: The Take Profit level is calculated dynamically based on a multiplier of either the ATR or the ORB Range. Breakeven Stop: If enabled, the Stop Loss automatically moves to the entry price (Breakeven) once the price moves a predetermined distance in the profitable direction. An Adaptive Breakeven option allows the trigger distance to be calculated as a percentage of the overall ATR Profit Target. Trailing Stop: The strategy uses a trailing stop, which can be custom-set (fixed ticks) or dynamically tied to the ATR. An optional feature Auto Tighten Trailing reduces the trailing multiplier once the breakeven level is hit. MA Cross Exit: An alternative, counter-trend exit mechanism that closes the trade if the price crosses back over the chosen Moving Average (either SMMA or VWAP), overriding the pending profit target. 4. Daily Account Management The strategy includes crucial daily risk controls to protect capital and lock in profits: Daily Profit Limit: If the total daily PnL (realized and unrealized) hits a predefined maximum profit threshold (in ticks), all trades are closed, and new entries are blocked for the remainder of the trading day. Daily Loss Limit: Conversely, if the total daily PnL hits a predefined maximum loss threshold, all trades are closed, and new entries are blocked for the remainder of the day.Pine Script®策略由mcward302提供5589
Best MA Finder: Sharpe/Sortino ScannerThis script, Best MA Finder: Sharpe/Sortino Scanner, is a tool designed to identify the moving average (SMA or EMA) that best acts as a dynamic trend threshold on a chart, based on risk-adjusted historical performance. It scans a wide range of MA lengths (SMA or EMA) and selects the one whose simple price vs MA crossover delivered the strongest results using either the Sharpe ratio or the Sortino ratio. Reading it is intuitive: when price spent time above the selected MA, conditions were on average more favorable in the backtest; below, less favorable. It is a trend and risk gauge, not an overbought or oversold signal. What it does: - Runs individual long-only crossover backtests for many MA lengths across short to very long horizons. - For each length, measures the total number of trades, the annualized Sharpe ratio, and the annualized Sortino ratio. - Uses the chosen metric value (Sharpe or Sortino) as the score to rank candidates. - Applies a minimum trade filter to discard statistically weak results. - Optionally applies a local stability filter to prefer a length that also outperforms its close neighbors by at least a small margin. - Selects the optimal MA and displays it on the chart with a concise summary table. How to use it: - Choose MA type: SMA or EMA. - Choose the metric: Sharpe or Sortino. - Set the minimum trade count to filter out weak samples. - Select the risk-free mode: Auto: uses a short-term risk-free rate for USD-priced symbols when available. Manual: you provide a risk-free ticker. None: no risk-free rate. - Optionally enable stability controls: neighbor radius and epsilon. - Toggle the on-chart summary table as needed. On-chart output: - The selected optimal MA is plotted. - The optional table shows MA length, number of trades, chosen metric value annualized, and the annual risk-free rate used. Key features: - Risk-adjusted optimization via Sharpe or Sortino for fair, comparable assessment. - Broad MA scan with SMA and EMA support. - Optional stability filter to avoid one-off spikes. - Clear and auditable presentation directly on the chart. Use cases: - Traders who want a defensible, data-driven trend threshold without manual trial and error. - Swing and trend-following workflows across timeframes and asset classes. - Quick SMA vs EMA comparisons using risk-adjusted results. Limitations: - Not a full trading strategy with position sizing, costs, funding, slippage, or stops. - Long-only, one position at a time. - Discrete set of MA lengths, not a continuous optimizer. - Requires sufficient price history and, if used, a reliable risk-free series. This script is open-source and built from original logic. It does not replicate closed-source scripts or reuse significant external components. Pine Script®指标由Julien_Exe提供22210
MK_OSFT - Multi-Timeframe MA Dashboard with Alerts - v1.0Multi-Timeframe Moving Average Dashboard with Advanced Alerts A comprehensive multi-timeframe moving average indicator that displays MA levels from 6 different timeframes simultaneously on your chart, complete with intelligent labeling, customizable alerts, and performance-optimized plotting. *** Key Features *** Multi-Timeframe Analysis Monitor MA levels from 6 timeframes: 5m, 15m, 1H, 4H, Daily, and Weekly Clean visual separation with customizable colors for each timeframe Smart label positioning prevents overlapping and ensures readability Intelligent Alert System Individual alert toggles for each timeframe Cross-above and cross-below MA alerts with once-per-bar frequency Alerts only trigger on confirmed timeframe closes (no false signals) Works across all trading pairs on your current chart Flexible Display Options Toggle individual timeframe visibility Choose between SMA and EMA calculations Adjustable MA length (default: 12 periods) Two source options: Current Bar or Last Confirmed Bar Customizable line widths, label sizes, and colors Advanced Plotting System Optional plot lines that don't clutter your Style tab Performance-optimized line drawing with historical data support "Wait till close" behavior for smooth higher timeframe representation Clean horizontal segments that update only on timeframe closes Real-Time Information Table Live countdown timers showing time remaining until each timeframe closes Visual indicators for current price position relative to each MA Cross direction indicators (↑/↓) for quick trend assessment Show/Alert status display for easy configuration verification *** Settings Overview *** Moving Average Settings MA Length: Adjustable period (default: 12) MA Type: SMA or EMA Source: Current bar vs Last confirmed bar Individual Timeframe Controls Show/Hide toggles for each timeframe Individual alert enable/disable Optional plot line with custom width Color customization per timeframe Visual Customization Label size options (tiny, small, normal, large) Label offset positioning Minimum gap between labels to prevent overlap Drawing order preference (larger timeframes first/last) Smart Features Automatic label collision detection and adjustment Real-time countdown timers (only on live bars) Debug table with comprehensive timeframe information Built-in alert setup instructions Perfect For Swing traders monitoring multiple timeframe confluences Day traders seeking higher timeframe bias confirmation Anyone wanting clean, organized multi-timeframe MA analysis Traders who need reliable alerts without false signals Performance Optimized Efficient line drawing system (no Style tab clutter) Smart historical data handling Minimal resource usage with intelligent update cycles Works smoothly on all timeframes and symbols Transform your chart into a comprehensive multi-timeframe analysis dashboard with this professional-grade moving average indicator.Pine Script®指标由MK_OSF_TRADING提供已更新 55
RSI MA Cross AlertAlerts when RSI-based Moving Average crosses above 50. Can be used on any symbol and timeframe. Displays RSI, RSI-MA, and levels 30/50/70.Pine Script®指标由seby9279提供11
Volume and Volatility Ratio Indicator-WODI策略名称 交易量与波动率比例策略-WODI 一、用户自定义参数 vol_length:交易量均线长度,计算基础交易量活跃度。 index_short_length / index_long_length:指数短期与长期均线长度,用于捕捉中短期与中长期趋势。 index_magnification:敏感度放大倍数,调整指数均线的灵敏度。 index_threshold_magnification:阈值放大因子,用于动态过滤噪音。 lookback_bars:形态检测回溯K线根数,用于捕捉反转模式。 fib_tp_ratio / fib_sl_ratio:斐波那契止盈与止损比率,分别对应黄金分割(0.618/0.382 等)级别。 enable_reversal:反转信号开关,开启后将原有做空信号反向为做多信号,用于单边趋势加仓。 二、核心计算逻辑 交易量百分比 使用 ta.sma 计算 vol_ma,并得到 vol_percent = volume / vol_ma * 100。 价格波动率 volatility = (high – low) / close * 100。 构建复合指数 volatility_index = vol_percent * volatility,并分别计算其短期与长期均线(乘以 index_magnification)。 动态阈值 index_threshold = index_long_ma * index_threshold_magnification,过滤常规波动。 三、信号生成与策略执行 做多/做空信号 当短期指数均线自下而上突破长期均线,且 volatility_index 突破 index_threshold 时,发出做多信号。 当短期指数均线自上而下跌破长期均线,且 volatility_index 跌破 index_threshold 时,发出做空信号。 反转信号模式(可选) 若 enable_reversal = true,则所有做空信号反向为做多,用于在强趋势行情中加仓。 止盈止损管理 进场后自动设置斐波那契止盈位(基于入场价 × fib_tp_ratio)和止损位(入场价 × fib_sl_ratio)。 支持多级止盈:可依次以 0.382、0.618 等黄金分割比率分批平仓。 四、图表展示 策略信号标记:图上用箭头标明每次做多/做空(或反转加仓)信号。 斐波那契区间:在K线图中显示止盈/止损水平线。 复合指数与阈值线:与原版相同,在独立窗口绘制短、长期指数均线、指数曲线及阈值。 量能柱状:高于均线时染色,反转模式时额外高亮。 Strategy Name Volume and Volatility Ratio Strategy – WODI 1. User-Defined Parameters vol_length: Length for volume SMA. index_short_length / index_long_length: Short and long MA lengths for the composite index. index_magnification: Sensitivity multiplier for index MAs. index_threshold_magnification: Threshold multiplier to filter noise. lookback_bars: Number of bars to look back for pattern detection. fib_tp_ratio / fib_sl_ratio: Fibonacci take-profit and stop-loss ratios (e.g. 0.618, 0.382). enable_reversal: Toggle for reversal mode; flips short signals to long for trend-following add-on entries. 2. Core Calculation Volume Percentage: vol_ma = ta.sma(volume, vol_length) vol_percent = volume / vol_ma * 100 Volatility: volatility = (high – low) / close * 100 Composite Index: volatility_index = vol_percent * volatility Short/long MAs applied and scaled by index_magnification. Dynamic Threshold: index_threshold = index_long_ma * index_threshold_magnification. 3. Signal Generation & Execution Long/Short Entries: Long when short MA crosses above long MA and volatility_index > index_threshold. Short when short MA crosses below long MA and volatility_index < index_threshold. Reversal Mode (optional): If enable_reversal is on, invert all short entries to long to scale into trending moves. Fibonacci Take-Profit & Stop-Loss: Automatically set TP/SL levels at entry price × respective Fibonacci ratios. Supports multi-stage exits at 0.382, 0.618, etc. 4. Visualization Signal Arrows: Marks every long/short or reversal-add signal on the chart. Fibonacci Zones: Plots TP/SL lines on the price panel. Index & Threshold: Same as v1.0, with MAs, index curve, and threshold in a separate sub-window. Volume Bars: Colored when above vol_ma; extra highlight if a reversal-add signal triggersPine Script®策略由W0DI提供1177